<!DOCTYPE html>
<html lang="en-US">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>Image Processing | GLIMMER小作坊的工具人</title>
    <meta name="description" content="时间太瘦，指尖太宽，且行且珍惜">
    <meta name="generator" content="VuePress 1.4.0">
    <link rel="icon" href="/vuepress/image.png">
  <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">
  <script language="javascript" type="text/javascript" src="https://cdn.staticfile.org/jquery/1.7.2/jquery.min.js"></script>
  <script language="javascript" type="text/javascript" src="/js/MouseClickEffect.js"></script>
    
    <link rel="preload" href="/assets/css/0.styles.7c2ddbea.css" as="style"><link rel="preload" href="/assets/js/app.c1719760.js" as="script"><link rel="preload" href="/assets/js/5.882ae477.js" as="script"><link rel="preload" href="/assets/js/1.ad2741e3.js" as="script"><link rel="preload" href="/assets/js/2.b0f5b6a6.js" as="script"><link rel="preload" href="/assets/js/51.bbe1f24b.js" as="script"><link rel="preload" href="/assets/js/20.a8dae886.js" as="script"><link rel="prefetch" href="/assets/js/10.061af50f.js"><link rel="prefetch" href="/assets/js/100.85317b0d.js"><link rel="prefetch" href="/assets/js/101.8b7e5f17.js"><link rel="prefetch" href="/assets/js/102.724e3dd3.js"><link rel="prefetch" href="/assets/js/103.bfb1dc09.js"><link rel="prefetch" href="/assets/js/104.bc172956.js"><link rel="prefetch" href="/assets/js/105.dd66d16a.js"><link rel="prefetch" href="/assets/js/106.934eb59f.js"><link rel="prefetch" href="/assets/js/107.6f0b24bd.js"><link rel="prefetch" href="/assets/js/108.1e5abf7c.js"><link rel="prefetch" href="/assets/js/109.0b133847.js"><link rel="prefetch" href="/assets/js/11.c1bf9f21.js"><link rel="prefetch" href="/assets/js/110.4452fac4.js"><link rel="prefetch" href="/assets/js/111.8dbe7cfe.js"><link rel="prefetch" href="/assets/js/112.a2640d20.js"><link rel="prefetch" href="/assets/js/113.1776625c.js"><link rel="prefetch" href="/assets/js/114.b2f2dd05.js"><link rel="prefetch" href="/assets/js/115.4c5e3507.js"><link rel="prefetch" href="/assets/js/116.55246e31.js"><link rel="prefetch" href="/assets/js/117.73fbc87f.js"><link rel="prefetch" href="/assets/js/118.64a28e52.js"><link rel="prefetch" href="/assets/js/119.eb809170.js"><link rel="prefetch" href="/assets/js/12.50fe0adf.js"><link rel="prefetch" href="/assets/js/120.103458ff.js"><link rel="prefetch" href="/assets/js/121.ce43023f.js"><link rel="prefetch" href="/assets/js/122.9ccdb852.js"><link rel="prefetch" href="/assets/js/123.61815387.js"><link rel="prefetch" href="/assets/js/124.08e66733.js"><link rel="prefetch" href="/assets/js/125.8057f00b.js"><link rel="prefetch" href="/assets/js/126.31a70f61.js"><link rel="prefetch" href="/assets/js/127.3b67b02c.js"><link rel="prefetch" href="/assets/js/128.b577a571.js"><link rel="prefetch" href="/assets/js/129.9d910324.js"><link rel="prefetch" href="/assets/js/13.a866e204.js"><link rel="prefetch" href="/assets/js/130.8aca0d81.js"><link rel="prefetch" href="/assets/js/131.ea811b09.js"><link rel="prefetch" href="/assets/js/132.76bfb2dc.js"><link rel="prefetch" href="/assets/js/133.a2c35376.js"><link rel="prefetch" href="/assets/js/134.06ae0a00.js"><link rel="prefetch" href="/assets/js/14.78f9cc08.js"><link rel="prefetch" href="/assets/js/15.d4060631.js"><link rel="prefetch" href="/assets/js/16.3434d0b6.js"><link rel="prefetch" href="/assets/js/17.eda8d321.js"><link rel="prefetch" href="/assets/js/18.bdd63861.js"><link rel="prefetch" href="/assets/js/19.fbd1cf33.js"><link rel="prefetch" href="/assets/js/21.b6f04af7.js"><link rel="prefetch" href="/assets/js/22.f7430b65.js"><link rel="prefetch" href="/assets/js/23.9ac373d9.js"><link rel="prefetch" href="/assets/js/24.e22a443a.js"><link rel="prefetch" href="/assets/js/25.36f2adb4.js"><link rel="prefetch" href="/assets/js/26.5c85b2c3.js"><link rel="prefetch" href="/assets/js/27.51c2e282.js"><link rel="prefetch" href="/assets/js/28.3b5555cb.js"><link rel="prefetch" href="/assets/js/29.f290854b.js"><link rel="prefetch" href="/assets/js/30.6495d68c.js"><link rel="prefetch" href="/assets/js/31.d2291244.js"><link rel="prefetch" href="/assets/js/32.67cb6a0b.js"><link rel="prefetch" href="/assets/js/33.ebac8658.js"><link rel="prefetch" href="/assets/js/34.b4056456.js"><link rel="prefetch" href="/assets/js/35.2d35ec45.js"><link rel="prefetch" href="/assets/js/36.6da1ac84.js"><link rel="prefetch" href="/assets/js/37.8d970d48.js"><link rel="prefetch" href="/assets/js/38.94dfd07f.js"><link rel="prefetch" href="/assets/js/39.b0e22253.js"><link rel="prefetch" href="/assets/js/40.a0e6dc1e.js"><link rel="prefetch" href="/assets/js/41.67345a28.js"><link rel="prefetch" href="/assets/js/42.bae9c869.js"><link rel="prefetch" href="/assets/js/43.d62be483.js"><link rel="prefetch" href="/assets/js/44.2efe511e.js"><link rel="prefetch" href="/assets/js/45.e44be0c9.js"><link rel="prefetch" href="/assets/js/46.429897b0.js"><link rel="prefetch" href="/assets/js/47.026450f6.js"><link rel="prefetch" href="/assets/js/48.1b6ac3b2.js"><link rel="prefetch" href="/assets/js/49.0d5de7d1.js"><link rel="prefetch" href="/assets/js/50.bcaa0633.js"><link rel="prefetch" href="/assets/js/52.4d4d4941.js"><link rel="prefetch" href="/assets/js/53.b3074dbb.js"><link rel="prefetch" href="/assets/js/54.7b51af21.js"><link rel="prefetch" href="/assets/js/55.4880a3a5.js"><link rel="prefetch" href="/assets/js/56.0fbaa129.js"><link rel="prefetch" href="/assets/js/57.fa32ec0f.js"><link rel="prefetch" href="/assets/js/58.3ab779c1.js"><link rel="prefetch" href="/assets/js/59.f7416e71.js"><link rel="prefetch" href="/assets/js/6.cfda4e49.js"><link rel="prefetch" href="/assets/js/60.f997e769.js"><link rel="prefetch" href="/assets/js/61.b6ce2d29.js"><link rel="prefetch" href="/assets/js/62.484e896b.js"><link rel="prefetch" href="/assets/js/63.7436e7b5.js"><link rel="prefetch" href="/assets/js/64.0af3fb9d.js"><link rel="prefetch" href="/assets/js/65.cc6b1063.js"><link rel="prefetch" href="/assets/js/66.b226aae4.js"><link rel="prefetch" href="/assets/js/67.23fa8790.js"><link rel="prefetch" href="/assets/js/68.fb8897ef.js"><link rel="prefetch" href="/assets/js/69.ca44c95b.js"><link rel="prefetch" href="/assets/js/7.4ce0026c.js"><link rel="prefetch" href="/assets/js/70.dc65b621.js"><link rel="prefetch" href="/assets/js/71.627c41f8.js"><link rel="prefetch" href="/assets/js/72.30703fc7.js"><link rel="prefetch" href="/assets/js/73.48afc079.js"><link rel="prefetch" href="/assets/js/74.1181783d.js"><link rel="prefetch" href="/assets/js/75.c70d8736.js"><link rel="prefetch" href="/assets/js/76.a2c7c0b4.js"><link rel="prefetch" href="/assets/js/77.ba42676c.js"><link rel="prefetch" href="/assets/js/78.1bdfbac5.js"><link rel="prefetch" href="/assets/js/79.5343f801.js"><link rel="prefetch" href="/assets/js/8.94e9fcf2.js"><link rel="prefetch" href="/assets/js/80.aaff9fb9.js"><link rel="prefetch" href="/assets/js/81.7855e1f9.js"><link rel="prefetch" href="/assets/js/82.a522f853.js"><link rel="prefetch" href="/assets/js/83.d417cbce.js"><link rel="prefetch" href="/assets/js/84.aa477229.js"><link rel="prefetch" href="/assets/js/85.737ceb08.js"><link rel="prefetch" href="/assets/js/86.76914c69.js"><link rel="prefetch" href="/assets/js/87.ca65d02a.js"><link rel="prefetch" href="/assets/js/88.ecd6fbe0.js"><link rel="prefetch" href="/assets/js/89.8321befc.js"><link rel="prefetch" href="/assets/js/9.8972d482.js"><link rel="prefetch" href="/assets/js/90.3130a41f.js"><link rel="prefetch" href="/assets/js/91.662fea10.js"><link rel="prefetch" href="/assets/js/92.afebfc2f.js"><link rel="prefetch" href="/assets/js/93.93c4872e.js"><link rel="prefetch" href="/assets/js/94.1ef96f22.js"><link rel="prefetch" href="/assets/js/95.76a35ecf.js"><link rel="prefetch" href="/assets/js/96.afd7ca1a.js"><link rel="prefetch" href="/assets/js/97.e5ffb86e.js"><link rel="prefetch" href="/assets/js/98.7bb55507.js"><link rel="prefetch" href="/assets/js/99.4ded3fca.js"><link rel="prefetch" href="/assets/js/vendors~flowchart.b04affb9.js">
    <link rel="stylesheet" href="/assets/css/0.styles.7c2ddbea.css">
  </head>
  <body>
    <div id="app" data-server-rendered="true"><div><div class="theme-container" data-v-4d80cb8a><div data-v-4d80cb8a><div id="loader-wrapper" class="loading-wrapper" data-v-4b73742e data-v-4d80cb8a data-v-4d80cb8a><div class="loader-main" data-v-4b73742e><div data-v-4b73742e></div><div data-v-4b73742e></div><div data-v-4b73742e></div><div data-v-4b73742e></div></div> <!----> <!----></div> <div class="password-shadow password-wrapper-out" style="display:none;" data-v-0b619cf4 data-v-4d80cb8a data-v-4d80cb8a><h3 class="title" style="display:none;" data-v-0b619cf4 data-v-0b619cf4>GLIMMER小作坊的工具人</h3> <!----> <label id="box" class="inputBox" style="display:none;" data-v-0b619cf4 data-v-0b619cf4><input type="password" value="" data-v-0b619cf4> <span data-v-0b619cf4>Konck! Knock!</span> <button data-v-0b619cf4>OK</button></label> <div class="footer" style="display:none;" data-v-0b619cf4 data-v-0b619cf4><span data-v-0b619cf4><i class="iconfont reco-theme" data-v-0b619cf4></i> <a target="blank" href="https://vuepress-theme-reco.recoluan.com" data-v-0b619cf4>vuePress-theme-reco</a></span> <span data-v-0b619cf4><i class="iconfont reco-copyright" data-v-0b619cf4></i> <a data-v-0b619cf4><span data-v-0b619cf4>LJoson</span>
            
          <span data-v-0b619cf4>2020 - </span>
          2025
        </a></span></div></div> <div class="hide" data-v-4d80cb8a><header class="navbar" data-v-4d80cb8a><div title="导航" class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><!----> <span class="site-name">GLIMMER小作坊的工具人</span></a> <div class="links"><div class="color-picker"><a class="color-button"><i class="iconfont reco-color"></i></a> <div class="color-picker-menu" style="display:none;"><div class="mode-options"><h4 class="title">Choose mode</h4> <ul class="color-mode-options"><li class="dark">dark</li><li class="auto active">auto</li><li class="light">light</li></ul></div></div></div> <div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/index.html" class="nav-link"><i class="iconfont reco-home"></i>
  Home
</a></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title"><i class="iconfont reco-category"></i>
      分类
    </span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/categories/AI及机器人等/" class="nav-link"><i class="iconfont undefined"></i>
  AI及机器人等
</a></li><li class="dropdown-item"><!----> <a href="/categories/算法等/" class="nav-link"><i class="iconfont undefined"></i>
  算法等
</a></li><li class="dropdown-item"><!----> <a href="/categories/计算机技术等/" class="nav-link"><i class="iconfont undefined"></i>
  计算机技术等
</a></li><li class="dropdown-item"><!----> <a href="/categories/电子设计等/" class="nav-link"><i class="iconfont undefined"></i>
  电子设计等
</a></li><li class="dropdown-item"><!----> <a href="/categories/杂谈/" class="nav-link"><i class="iconfont undefined"></i>
  杂谈
</a></li><li class="dropdown-item"><!----> <a href="/categories/游戏设计等/" class="nav-link"><i class="iconfont undefined"></i>
  游戏设计等
</a></li><li class="dropdown-item"><!----> <a href="/categories/笔记等/" class="nav-link"><i class="iconfont undefined"></i>
  笔记等
</a></li></ul></div></div><div class="nav-item"><a href="/tag/" class="nav-link"><i class="iconfont reco-tag"></i>
  标签
</a></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title"><i class="iconfont reco-document"></i>
      我的
    </span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><h4>Projects🎈</h4> <ul class="dropdown-subitem-wrapper"><li class="dropdown-subitem"><a href="/projects/github.html" class="nav-link"><i class="iconfont undefined"></i>
  Project on github
</a></li></ul></li><li class="dropdown-item"><h4>Station🎈</h4> <ul class="dropdown-subitem-wrapper"><li class="dropdown-subitem"><a href="https://github.com/LJoson" target="_blank" rel="noopener noreferrer" class="nav-link external"><i class="iconfont undefined"></i>
  GitHub
  <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-subitem"><a href="https://blog.csdn.net/qq_43743037" target="_blank" rel="noopener noreferrer" class="nav-link external"><i class="iconfont undefined"></i>
  CSDN
  <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></li></ul></div></div><div class="nav-item"><a href="/timeLine/index.html" class="nav-link"><i class="iconfont reco-date"></i>
  时间线
</a></div><div class="nav-item"><a href="https://ljoson.github.io/arXiv_daily" target="_blank" rel="noopener noreferrer" class="nav-link external"><i class="iconfont reco-document"></i>
  每日论文摘要
  <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><a href="/about/aboutme.html" class="nav-link"><i class="iconfont reco-message"></i>
  关于坊主
</a></div> <!----></nav></div></header> <div class="sidebar-mask" data-v-4d80cb8a></div> <aside class="sidebar" data-v-4d80cb8a><div class="personal-info-wrapper" data-v-79645776><img src="/vuepress/Headimage.jpg" alt="author-avatar" class="personal-img" data-v-79645776> <h3 class="name" data-v-79645776>
    LJoson
  </h3> <div class="num" data-v-79645776><div data-v-79645776><h3 data-v-79645776>105</h3> <h6 data-v-79645776>文章</h6></div> <div data-v-79645776><h3 data-v-79645776>49</h3> <h6 data-v-79645776>标签</h6></div></div> <hr data-v-79645776></div> <nav class="nav-links"><div class="nav-item"><a href="/index.html" class="nav-link"><i class="iconfont reco-home"></i>
  Home
</a></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title"><i class="iconfont reco-category"></i>
      分类
    </span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/categories/AI及机器人等/" class="nav-link"><i class="iconfont undefined"></i>
  AI及机器人等
</a></li><li class="dropdown-item"><!----> <a href="/categories/算法等/" class="nav-link"><i class="iconfont undefined"></i>
  算法等
</a></li><li class="dropdown-item"><!----> <a href="/categories/计算机技术等/" class="nav-link"><i class="iconfont undefined"></i>
  计算机技术等
</a></li><li class="dropdown-item"><!----> <a href="/categories/电子设计等/" class="nav-link"><i class="iconfont undefined"></i>
  电子设计等
</a></li><li class="dropdown-item"><!----> <a href="/categories/杂谈/" class="nav-link"><i class="iconfont undefined"></i>
  杂谈
</a></li><li class="dropdown-item"><!----> <a href="/categories/游戏设计等/" class="nav-link"><i class="iconfont undefined"></i>
  游戏设计等
</a></li><li class="dropdown-item"><!----> <a href="/categories/笔记等/" class="nav-link"><i class="iconfont undefined"></i>
  笔记等
</a></li></ul></div></div><div class="nav-item"><a href="/tag/" class="nav-link"><i class="iconfont reco-tag"></i>
  标签
</a></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title"><i class="iconfont reco-document"></i>
      我的
    </span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><h4>Projects🎈</h4> <ul class="dropdown-subitem-wrapper"><li class="dropdown-subitem"><a href="/projects/github.html" class="nav-link"><i class="iconfont undefined"></i>
  Project on github
</a></li></ul></li><li class="dropdown-item"><h4>Station🎈</h4> <ul class="dropdown-subitem-wrapper"><li class="dropdown-subitem"><a href="https://github.com/LJoson" target="_blank" rel="noopener noreferrer" class="nav-link external"><i class="iconfont undefined"></i>
  GitHub
  <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-subitem"><a href="https://blog.csdn.net/qq_43743037" target="_blank" rel="noopener noreferrer" class="nav-link external"><i class="iconfont undefined"></i>
  CSDN
  <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></li></ul></div></div><div class="nav-item"><a href="/timeLine/index.html" class="nav-link"><i class="iconfont reco-date"></i>
  时间线
</a></div><div class="nav-item"><a href="https://ljoson.github.io/arXiv_daily" target="_blank" rel="noopener noreferrer" class="nav-link external"><i class="iconfont reco-document"></i>
  每日论文摘要
  <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><a href="/about/aboutme.html" class="nav-link"><i class="iconfont reco-message"></i>
  关于坊主
</a></div> <!----></nav>  <ul class="sidebar-links"><li><a href="/views/" class="sidebar-link">概览</a></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>AI及机器人等</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading open"><span>算法等</span> <span class="arrow down"></span></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/views/algorithm/opencv/clahe.html" class="sidebar-link">限制对比度自适应直方图均衡化(Contrast Limited Adaptive Hitogram Equalization)</a></li><li><a href="/views/algorithm/opencv/ImageProcessing.html" class="active sidebar-link">Image Processing</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/views/algorithm/opencv/ImageProcessing.html#_1-通道交换" class="sidebar-link">1.通道交换</a></li><li class="sidebar-sub-header"><a href="/views/algorithm/opencv/ImageProcessing.html#_2-灰度化（grayscale）" class="sidebar-link">2. 灰度化（Grayscale）</a></li></ul></li><li><a href="/views/algorithm/opencv/otsu.html" class="sidebar-link">Image Processing 100 Questions之图像二值化</a></li><li><a href="/views/algorithm/opencv/retinex.html" class="sidebar-link">多尺度Retinex图像增强</a></li><li><a href="/views/algorithm/opencv/env.html" class="sidebar-link">linux下无痛安装opencv</a></li><li><a href="/views/algorithm/opencv/cornerdetection00.html" class="sidebar-link">图像处理之cornerdection(角点检测)</a></li><li><a href="/views/algorithm/slam/n0.html" class="sidebar-link">slam技术综述</a></li><li><a href="/views/algorithm/slam/vslam_rs.html" class="sidebar-link">D435i相机开发笔记-固件更新工具 (rs-fw-update)</a></li><li><a href="/views/algorithm/slam/velyodyne.html" class="sidebar-link">Velodyne的16线激光雷达使用以及可视化</a></li><li><a href="/views/algorithm/slam/aloam.html" class="sidebar-link">Advanced implementation of LOAM</a></li><li><a href="/views/algorithm/leetcode/leetcode1.html" class="sidebar-link">Leetcode刷题专题（一）</a></li></ul></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>计算机技术等</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>硬件及运动控制等</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>杂谈</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>小游戏设计等</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>笔记等</span> <span class="arrow right"></span></p> <!----></section></li></ul> </aside> <div class="password-shadow password-wrapper-in" style="display:none;" data-v-0b619cf4 data-v-4d80cb8a><h3 class="title" style="display:none;" data-v-0b619cf4 data-v-0b619cf4>Image Processing</h3> <!----> <label id="box" class="inputBox" style="display:none;" data-v-0b619cf4 data-v-0b619cf4><input type="password" value="" data-v-0b619cf4> <span data-v-0b619cf4>Konck! Knock!</span> <button data-v-0b619cf4>OK</button></label> <div class="footer" style="display:none;" data-v-0b619cf4 data-v-0b619cf4><span data-v-0b619cf4><i class="iconfont reco-theme" data-v-0b619cf4></i> <a target="blank" href="https://vuepress-theme-reco.recoluan.com" data-v-0b619cf4>vuePress-theme-reco</a></span> <span data-v-0b619cf4><i class="iconfont reco-copyright" data-v-0b619cf4></i> <a data-v-0b619cf4><span data-v-0b619cf4>LJoson</span>
            
          <span data-v-0b619cf4>2020 - </span>
          2025
        </a></span></div></div> <div data-v-4d80cb8a><main class="page"><!----> <div class="page-title" style="display:none;"><h1>Image Processing</h1> <hr> <div data-v-09556aba><i class="iconfont reco-account" data-v-09556aba><span data-v-09556aba>LJoson</span></i> <i class="iconfont reco-date" data-v-09556aba><span data-v-09556aba>2020-03-24 20:41:12</span></i> <i class="iconfont reco-eye" data-v-09556aba><span id="/views/algorithm/opencv/ImageProcessing.html" data-flag-title="Your Article Title" class="leancloud-visitors" data-v-09556aba><a class="leancloud-visitors-count" style="font-size:.9rem;font-weight:normal;color:#999;"></a></span></i> <i class="iconfont reco-tag tags" data-v-09556aba><span class="tag-item" data-v-09556aba>
      图像处理
    </span></i></div></div> <div class="theme-reco-content content__default" style="display:none;"><p></p><div class="table-of-contents"><ul><li><a href="#_1-通道交换">1.通道交换</a></li><li><a href="#_2-灰度化（grayscale）">2. 灰度化（Grayscale）</a></li></ul></div><p></p> <h1 id="引言"><a href="#引言" class="header-anchor">#</a> 引言</h1> <ul><li>此学习是基于gitnub上一个<a href="https://github.com/KuKuXia/Image_Processing_100_Questions" target="_blank" rel="noopener noreferrer">Image Processing 100 Questions<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a>,有日语等三个版本，这是英文版，讨论的是结合opencv进行图像处理问题，有python和c++，文章以c++为主。</li> <li>Image Processing指的是计算机等处理图像的一种技术，所以首先要知道图像在计算机中的存储方式。图像文件格式是记录和存储影像信息的格式。对数字图像进行存储、处理、传播，必须采用一定的图像格式，也就是把图像的像素按照一定的方式进行组织和存储，把图像数据存储成文件就得到图像文件。而图像以一个二维数组形式存储，要访问其像素点，可看如图(RGB图像中每个点（像素）由3个byte表示（红，绿，蓝或R,G,B三分量）)</li></ul> <p><img src="/img/algorithm/image.png" alt=""></p> <p>上图展示了图片在计算机中的二维存储坐标系，图片的高度对应y轴和行数，而宽度对应了x轴及列数，因此一张宽度为640像素，高度为480像素分辨率的灰度图就可以表示为：</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>unsigned char image[480][640]

</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br></div></div><p>根据这种定义方式,如果我们讨论一个位于 x, y 处的像素,那么它在程序中的访问方式应该是：</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>unsigned char pixel = image[y][x];

</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br></div></div><ul><li>而在我学习图形化游戏编程时，遇到一个graphic(图形)的概念，非常有趣，我觉得<a href="https://blog.csdn.net/xingfuyusheng/article/details/81564038" target="_blank" rel="noopener noreferrer">计算机中的图形（Graphic）和图像（Image）<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a>这篇文章为我们展现了相关概念。</li></ul> <h2 id="_1-通道交换"><a href="#_1-通道交换" class="header-anchor">#</a> 1.通道交换</h2> <p>将计算机中图像的 RGB 通道替换成 BGR 通道。（R:red,G:green,B:blue)
以red通道为例，</p> <div class="language-cpp line-numbers-mode"><pre class="language-cpp"><code><span class="token comment">//导入opencv库</span>
<span class="token macro property"><span class="token directive-hash">#</span><span class="token directive keyword">include</span> <span class="token string">&lt;opencv2/core.hpp&gt;</span></span>
<span class="token macro property"><span class="token directive-hash">#</span><span class="token directive keyword">include</span> <span class="token string">&lt;opencv2/highgui.hpp&gt;</span></span>
<span class="token macro property"><span class="token directive-hash">#</span><span class="token directive keyword">include</span> <span class="token string">&lt;iostream&gt;</span></span>

<span class="token keyword">int</span> <span class="token function">main</span><span class="token punctuation">(</span><span class="token keyword">int</span> argc<span class="token punctuation">,</span> <span class="token keyword">const</span> <span class="token keyword">char</span><span class="token operator">*</span> argv<span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">)</span><span class="token punctuation">{</span>
  cv<span class="token operator">::</span>Mat img <span class="token operator">=</span> cv<span class="token operator">::</span><span class="token function">imread</span><span class="token punctuation">(</span><span class="token string">&quot;path&quot;</span><span class="token punctuation">,</span> cv<span class="token operator">::</span>IMREAD_COLOR<span class="token punctuation">)</span><span class="token punctuation">;</span><span class="token comment">//运用opencv读取图像，以BGR存储，path为计算机中图片的绝对路径或者相对路径</span>

  <span class="token keyword">int</span> height <span class="token operator">=</span> img<span class="token punctuation">.</span>rows<span class="token punctuation">;</span><span class="token comment">//高为行数</span>
  <span class="token keyword">int</span> width <span class="token operator">=</span> img<span class="token punctuation">.</span>cols<span class="token punctuation">;</span><span class="token comment">//宽为列数</span>

  cv<span class="token operator">::</span>Mat out <span class="token operator">=</span> img<span class="token punctuation">.</span><span class="token function">clone</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token comment">//复制定义一个图像</span>

  <span class="token keyword">for</span> <span class="token punctuation">(</span><span class="token keyword">int</span> y<span class="token operator">=</span><span class="token number">0</span><span class="token punctuation">;</span> y<span class="token operator">&lt;</span>height<span class="token punctuation">;</span> y<span class="token operator">++</span><span class="token punctuation">)</span><span class="token punctuation">{</span>
    <span class="token keyword">for</span> <span class="token punctuation">(</span><span class="token keyword">int</span> x<span class="token operator">=</span><span class="token number">0</span><span class="token punctuation">;</span> x<span class="token operator">&lt;</span>width<span class="token punctuation">;</span> x<span class="token operator">++</span><span class="token punctuation">)</span><span class="token punctuation">{</span>
      <span class="token keyword">unsigned</span> <span class="token keyword">char</span> tmp <span class="token operator">=</span> out<span class="token punctuation">.</span>at<span class="token operator">&lt;</span>cv<span class="token operator">::</span>Vec3b<span class="token operator">&gt;</span><span class="token punctuation">(</span>y<span class="token punctuation">,</span> x<span class="token punctuation">)</span><span class="token punctuation">[</span><span class="token number">0</span><span class="token punctuation">]</span><span class="token punctuation">;</span><span class="token comment">//定义第三个参数，并把B通道赋值</span>
      out<span class="token punctuation">.</span>at<span class="token operator">&lt;</span>cv<span class="token operator">::</span>Vec3b<span class="token operator">&gt;</span><span class="token punctuation">(</span>y<span class="token punctuation">,</span>x<span class="token punctuation">)</span><span class="token punctuation">[</span><span class="token number">0</span><span class="token punctuation">]</span> <span class="token operator">=</span> img<span class="token punctuation">.</span>at<span class="token operator">&lt;</span>cv<span class="token operator">::</span>Vec3b<span class="token operator">&gt;</span><span class="token punctuation">(</span>y<span class="token punctuation">,</span>x<span class="token punctuation">)</span><span class="token punctuation">[</span><span class="token number">2</span><span class="token punctuation">]</span><span class="token punctuation">;</span><span class="token comment">//把R通道赋值给B通道</span>
      out<span class="token punctuation">.</span>at<span class="token operator">&lt;</span>cv<span class="token operator">::</span>Vec3b<span class="token operator">&gt;</span><span class="token punctuation">(</span>y<span class="token punctuation">,</span>x<span class="token punctuation">)</span><span class="token punctuation">[</span><span class="token number">2</span><span class="token punctuation">]</span> <span class="token operator">=</span> tmp<span class="token punctuation">;</span><span class="token comment">//把B通道赋值给R通道</span>
    <span class="token punctuation">}</span>
  <span class="token punctuation">}</span>

  <span class="token comment">//cv::imwrite(&quot;out.jpg&quot;, out);</span>
  cv<span class="token operator">::</span><span class="token function">imshow</span><span class="token punctuation">(</span><span class="token string">&quot;sample&quot;</span><span class="token punctuation">,</span> out<span class="token punctuation">)</span><span class="token punctuation">;</span>
  cv<span class="token operator">::</span><span class="token function">waitKey</span><span class="token punctuation">(</span><span class="token number">0</span><span class="token punctuation">)</span><span class="token punctuation">;</span><span class="token comment">//窗口悬浮</span>
  cv<span class="token operator">::</span><span class="token function">destroyAllWindows</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span><span class="token comment">//释放内存空间</span>

  <span class="token keyword">return</span> <span class="token number">0</span><span class="token punctuation">;</span>

<span class="token punctuation">}</span>

</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br><span class="line-number">17</span><br><span class="line-number">18</span><br><span class="line-number">19</span><br><span class="line-number">20</span><br><span class="line-number">21</span><br><span class="line-number">22</span><br><span class="line-number">23</span><br><span class="line-number">24</span><br><span class="line-number">25</span><br><span class="line-number">26</span><br><span class="line-number">27</span><br><span class="line-number">28</span><br><span class="line-number">29</span><br><span class="line-number">30</span><br></div></div><div class="custom-block tip"><p class="custom-block-title">cv::Vec3b</p> <ul><li>vector(向量): C++中的一种数据结构,确切的说是一个类.它相当于一个动态的数组,当程序员无法知道自己需要的数组的规模多大时,用其来解决问题可以达到最大节约空间的目的.<br></li> <li>比如Vec&lt;uchar, 3&gt;：
其实这句就是定义一个uchar类型的数组，长度为3而已，例如 8U 类型的 RGB 彩色图像可以使用 <Vec3b>，<br>
3 通道 float 类型的矩阵可以使用 <Vec3f>。<br>
对于 Vec 对象，可以使用[]符号如操作数组般读写其元素，如：Vec3b color; 用 color 变量描述一种 RGB 颜色<br>
color[0]=255; //0通道的B 分量<br>
color[1]=0; //1通道的G 分量<br>
color[2]=0; //2通道的R 分量<br></Vec3f></Vec3b></li> <li>opencv中RGB彩图通道顺序为BGR，从[0]~[1]~[2]<br></li></ul></div> <div class="custom-block tip"><p class="custom-block-title">.at</p> <ul><li>cv::mat的成员函数： .at(int y， int x)可以用来存取图像中对应坐标为（x，y）的元素坐标。</li></ul></div> <div class="custom-block tip"><p class="custom-block-title">读写像素</p> <p>一个RGB像素点的像素值：<br>
Vec3f intensity  = Mat.at<Vec3f>(y,x) <br>
float blue = intensity.val[0]   //获得蓝色通道的像素值<br>
float green = intensity.val[1]   //获得绿色通道的像素值<br>
float red = intensity.val[2]      //获得红色通道的像素值<br>
整型：<br>
int b = srcImage.at<Vec3b>(row, col)[0];  //获取像素值b <br>
int g = srcImage.at<Vec3b>(row, col)[1];  //获取像素值g<br>
int r = srcImage.at<Vec3b>(row, col)[2];  //获取像素值r<br></Vec3b></Vec3b></Vec3b></Vec3f></p></div> <h2 id="_2-灰度化（grayscale）"><a href="#_2-灰度化（grayscale）" class="header-anchor">#</a> 2. 灰度化（Grayscale）</h2> <p>将图像灰度化！灰度是一种图像亮度的表示方法，通过下式计算：</p> <p>Y = 0.2126 R + 0.7152 G + 0.0722 B</p> <div class="language-cpp line-numbers-mode"><pre class="language-cpp"><code>
<span class="token macro property"><span class="token directive-hash">#</span><span class="token directive keyword">include</span> <span class="token string">&lt;opencv2/core.hpp&gt;</span></span>
<span class="token macro property"><span class="token directive-hash">#</span><span class="token directive keyword">include</span> <span class="token string">&lt;opencv2/highgui.hpp&gt;</span></span>
<span class="token macro property"><span class="token directive-hash">#</span><span class="token directive keyword">include</span> <span class="token string">&lt;iostream&gt;</span></span>

<span class="token keyword">int</span> <span class="token function">main</span><span class="token punctuation">(</span><span class="token keyword">int</span> argc<span class="token punctuation">,</span> <span class="token keyword">const</span> <span class="token keyword">char</span><span class="token operator">*</span> argv<span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">)</span><span class="token punctuation">{</span>
  cv<span class="token operator">::</span>Mat img <span class="token operator">=</span> cv<span class="token operator">::</span><span class="token function">imread</span><span class="token punctuation">(</span><span class="token string">&quot;path&quot;</span><span class="token punctuation">,</span> cv<span class="token operator">::</span>IMREAD_COLOR<span class="token punctuation">)</span><span class="token comment">//cv::IMREAD_COLOR默认本身彩图格式读取</span>

  <span class="token keyword">int</span> height <span class="token operator">=</span> img<span class="token punctuation">.</span>rows<span class="token punctuation">;</span>
  <span class="token keyword">int</span> width <span class="token operator">=</span> img<span class="token punctuation">.</span>cols<span class="token punctuation">;</span>

  cv<span class="token operator">::</span>Mat out <span class="token operator">=</span> cv<span class="token operator">::</span><span class="token class-name">Mat</span><span class="token operator">::</span><span class="token function">zeros</span><span class="token punctuation">(</span>height<span class="token punctuation">,</span> width<span class="token punctuation">,</span> CV_8UC1<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token comment">//定义相同分辨率的单通道矩阵</span>
  
  <span class="token keyword">for</span> <span class="token punctuation">(</span><span class="token keyword">int</span> y<span class="token operator">=</span><span class="token number">0</span><span class="token punctuation">;</span> y<span class="token operator">&lt;</span>height<span class="token punctuation">;</span> y<span class="token operator">++</span><span class="token punctuation">)</span><span class="token punctuation">{</span>
    <span class="token keyword">for</span> <span class="token punctuation">(</span><span class="token keyword">int</span> x<span class="token operator">=</span><span class="token number">0</span><span class="token punctuation">;</span> x<span class="token operator">&lt;</span>width<span class="token punctuation">;</span> x<span class="token operator">++</span><span class="token punctuation">)</span><span class="token punctuation">{</span>
      out<span class="token punctuation">.</span>at<span class="token operator">&lt;</span>uchar<span class="token operator">&gt;</span><span class="token punctuation">(</span>y<span class="token punctuation">,</span> x<span class="token punctuation">)</span> <span class="token operator">=</span> <span class="token punctuation">(</span><span class="token keyword">int</span><span class="token punctuation">)</span><span class="token punctuation">(</span><span class="token punctuation">(</span><span class="token keyword">float</span><span class="token punctuation">)</span>img<span class="token punctuation">.</span>at<span class="token operator">&lt;</span>cv<span class="token operator">::</span>Vec3b<span class="token operator">&gt;</span><span class="token punctuation">(</span>y<span class="token punctuation">,</span>x<span class="token punctuation">)</span><span class="token punctuation">[</span><span class="token number">0</span><span class="token punctuation">]</span> <span class="token operator">*</span> <span class="token number">0.0722</span> <span class="token operator">+</span> \
				  <span class="token punctuation">(</span><span class="token keyword">float</span><span class="token punctuation">)</span>img<span class="token punctuation">.</span>at<span class="token operator">&lt;</span>cv<span class="token operator">::</span>Vec3b<span class="token operator">&gt;</span><span class="token punctuation">(</span>y<span class="token punctuation">,</span>x<span class="token punctuation">)</span><span class="token punctuation">[</span><span class="token number">1</span><span class="token punctuation">]</span> <span class="token operator">*</span> <span class="token number">0.7152</span> <span class="token operator">+</span> \
				  <span class="token punctuation">(</span><span class="token keyword">float</span><span class="token punctuation">)</span>img<span class="token punctuation">.</span>at<span class="token operator">&lt;</span>cv<span class="token operator">::</span>Vec3b<span class="token operator">&gt;</span><span class="token punctuation">(</span>y<span class="token punctuation">,</span>x<span class="token punctuation">)</span><span class="token punctuation">[</span><span class="token number">2</span><span class="token punctuation">]</span> <span class="token operator">*</span> <span class="token number">0.2126</span><span class="token punctuation">)</span><span class="token punctuation">;</span>  <span class="token comment">//公式</span>
    <span class="token punctuation">}</span>
  <span class="token punctuation">}</span>
  
  <span class="token comment">//cv::imwrite(&quot;out.jpg&quot;, out);</span>
  cv<span class="token operator">::</span><span class="token function">imshow</span><span class="token punctuation">(</span><span class="token string">&quot;answer&quot;</span><span class="token punctuation">,</span> out<span class="token punctuation">)</span><span class="token punctuation">;</span>
  cv<span class="token operator">::</span><span class="token function">waitKey</span><span class="token punctuation">(</span><span class="token number">0</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
  cv<span class="token operator">::</span><span class="token function">destroyAllWindows</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span><span class="token comment">//释放内存</span>

  <span class="token keyword">return</span> <span class="token number">0</span><span class="token punctuation">;</span>

<span class="token punctuation">}</span>

</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br><span class="line-number">17</span><br><span class="line-number">18</span><br><span class="line-number">19</span><br><span class="line-number">20</span><br><span class="line-number">21</span><br><span class="line-number">22</span><br><span class="line-number">23</span><br><span class="line-number">24</span><br><span class="line-number">25</span><br><span class="line-number">26</span><br><span class="line-number">27</span><br><span class="line-number">28</span><br><span class="line-number">29</span><br><span class="line-number">30</span><br></div></div><div class="custom-block tip"><p class="custom-block-title">CV_8UC1</p> <p>矩阵数据类型:<br>
– CV_&lt;bit_depth&gt;(S|U|F)C&lt;number_of_channels&gt;<br>
S = 符号整型 U = 无符号整型 F = 浮点型<br></p> <p>CV_8UC1 是指一个8位无符号整型单通道矩阵<br>
CV_32FC2是指一个32位浮点型双通道矩阵<br>
CV_8UC1 CV_8SC1 CV_16U C1 CV_16SC1<br>
CV_8UC2 CV_8SC2 CV_16UC2 CV_16SC2<br>
CV_8UC3 CV_8SC3 CV_16UC3 CV_16SC3<br>
CV_8UC4 CV_8SC4 CV_16UC4 CV_16SC4<br>
CV_32SC1 CV_32FC1 CV_64FC1<br>
CV_32SC2 CV_32FC2 CV_64FC2<br>
CV_32SC3 CV_32FC3 CV_64FC3<br>
CV_32SC4 CV_32FC4 CV_64FC4<br></p> <p>其中，通道表示每个点能存放多少个数，类似于RGB彩色图中的每个像素点有三个值，即三通道的。<br>
图片中的深度表示每个值由多少位来存储，是一个精度问题，一般图片是8bit（位）的，则深度是8.<br></p></div></div> <footer class="page-edit" style="display:none;"><!----> <div class="last-updated"><span class="prefix">最后更新时间: </span> <span class="time">2023/01/13, 20:39:48</span></div></footer> <!----> <!----> <div class="article-list" data-v-61e7bf3a><div class="article-title" data-v-61e7bf3a><a href="/timeline/" class="iconfont icon-shizhong" data-v-61e7bf3a>最近更新</a></div> <div class="article-wrapper" data-v-61e7bf3a><dl data-v-61e7bf3a><dd data-v-61e7bf3a>01</dd> <dt data-v-61e7bf3a><a href="/views/AI/ebot/ebot1.html" data-v-61e7bf3a><div data-v-61e7bf3a>技术随笔《二》：人形机器人模仿学习与传统控制方法概述</div></a> <span data-v-61e7bf3a>04-12</span></dt></dl><dl data-v-61e7bf3a><dd data-v-61e7bf3a>02</dd> <dt data-v-61e7bf3a><a href="/views/AI/ebot/ebot0.html" data-v-61e7bf3a><div data-v-61e7bf3a>技术随笔《一》：人形机器人控制算法概述</div></a> <span data-v-61e7bf3a>04-10</span></dt></dl><dl data-v-61e7bf3a><dd data-v-61e7bf3a>03</dd> <dt data-v-61e7bf3a><a href="/views/AI/coder/" data-v-61e7bf3a><div data-v-61e7bf3a>编解码器详解</div></a> <span data-v-61e7bf3a>12-26</span></dt></dl></div> <div data-v-61e7bf3a><a href="/timeline/" class="article-more" data-v-61e7bf3a>更多文章 &gt;</a></div></div></main> <!----> <div class="comments-wrapper" data-v-4d80cb8a><div class="valine-wrapper"><div id="valine"></div></div></div></div></div></div></div></div><div class="global-ui"><div class="back-to-ceiling" style="right:1rem;bottom:6rem;width:2.5rem;height:2.5rem;border-radius:.25rem;line-height:2.5rem;display:none;" data-v-a81d141e data-v-a81d141e><svg t="1574745035067" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5404" class="icon" data-v-a81d141e><path d="M526.60727968 10.90185116a27.675 27.675 0 0 0-29.21455937 0c-131.36607665 82.28402758-218.69155461 228.01873535-218.69155402 394.07834331a462.20625001 462.20625001 0 0 0 5.36959153 69.94390903c1.00431239 6.55289093-0.34802892 13.13561351-3.76865779 18.80351572-32.63518765 54.11355614-51.75690182 118.55860487-51.7569018 187.94566865a371.06718723 371.06718723 0 0 0 11.50484808 91.98906777c6.53300375 25.50556257 41.68394495 28.14064038 52.69160883 4.22606766 17.37162448-37.73630017 42.14135425-72.50938081 72.80769204-103.21549295 2.18761121 3.04276886 4.15646224 6.24463696 6.40373557 9.22774369a1871.4375 1871.4375 0 0 0 140.04691725 5.34970492 1866.36093723 1866.36093723 0 0 0 140.04691723-5.34970492c2.24727335-2.98310674 4.21612437-6.18497483 6.3937923-9.2178004 30.66633723 30.70611158 55.4360664 65.4791928 72.80769147 103.21549355 11.00766384 23.91457269 46.15860503 21.27949489 52.69160879-4.22606768a371.15156223 371.15156223 0 0 0 11.514792-91.99901164c0-69.36717486-19.13165746-133.82216804-51.75690182-187.92578088-3.42062944-5.66790279-4.76302748-12.26056868-3.76865837-18.80351632a462.20625001 462.20625001 0 0 0 5.36959269-69.943909c-0.00994388-166.08943902-87.32547796-311.81420293-218.6915546-394.09823051zM605.93803103 357.87693858a93.93749974 93.93749974 0 1 1-187.89594924 6.1e-7 93.93749974 93.93749974 0 0 1 187.89594924-6.1e-7z" p-id="5405" data-v-a81d141e></path><path d="M429.50777625 765.63860547C429.50777625 803.39355007 466.44236686 1000.39046097 512.00932183 1000.39046097c45.56695499 0 82.4922232-197.00623328 82.5015456-234.7518555 0-37.75494459-36.9345906-68.35043303-82.4922232-68.34111062-45.57627738-0.00932239-82.52019037 30.59548842-82.51086798 68.34111062z" p-id="5406" data-v-a81d141e></path></svg></div><!----><div data-v-4a66ed39><div class="DetailsOpenFlag" style="right:1rem;bottom:9rem;width:2.5rem;height:2.5rem;border-radius:.25rem;line-height:2.5rem;font-size:14px;font-weight:500;display:none;" data-v-4a66ed39>
 展开

</div></div><div class="kanbanniang" data-v-3c101199><div class="banniang-container" style="display:;" data-v-3c101199><div class="messageBox" style="right:68px;bottom:190px;display:none;" data-v-3c101199>
      欢迎来到 GLIMMER小作坊的工具人
    </div> <div class="operation" style="right:90px;bottom:40px;display:;" data-v-3c101199><i class="kbnfont kbn-ban-home ban-home" data-v-3c101199></i> <i class="kbnfont kbn-ban-message message" data-v-3c101199></i> <i class="kbnfont kbn-ban-close close" data-v-3c101199></i> <a target="_blank" href="https://vuepress-theme-reco.recoluan.com/views/plugins/kanbanniang.html" data-v-3c101199><i class="kbnfont kbn-ban-info info" data-v-3c101199></i></a> <i class="kbnfont kbn-ban-theme skin" style="display:;" data-v-3c101199></i></div> <canvas id="banniang" width="150" height="220" class="live2d" style="right:90px;bottom:-20px;opacity:0.9;" data-v-3c101199></canvas></div> <div class="showBanNiang" style="display:none;" data-v-3c101199>
    看板娘
  </div></div></div></div>
    <script src="/assets/js/app.c1719760.js" defer></script><script src="/assets/js/5.882ae477.js" defer></script><script src="/assets/js/1.ad2741e3.js" defer></script><script src="/assets/js/2.b0f5b6a6.js" defer></script><script src="/assets/js/51.bbe1f24b.js" defer></script><script src="/assets/js/20.a8dae886.js" defer></script>
  </body>
</html>
